<?php
$kuname = "longzs";
ini_set('display_errors', 'Off');
include("../../config.php");
require '../Common/yzs1013_pldr.php';
$urlcode = urlcode($_REQUEST['url']);
$rs=getrow("select tempnr,element_before,url,sj,jsdata,jsurl from cache where urlcode='{$urlcode}'");
$baseurl=dirname($rs['url']);
if($_REQUEST['n']=="jsdata"){
    $html=$rs['jsurl'];
    $html.="\n".print_r(json_decode($rs[$_REQUEST['n']]),1);
}else {
    $html = @htmlnice($rs[$_REQUEST['n']]);
    $html = ($html == "") ? $rs[$_REQUEST['n']] : $html;
}
$html=preg_replace("/<\/title>/Uisx","</title>\n<base href='{$baseurl}/' target=\"_blank\"/>\n",$html);
$html=preg_replace("/<\/title>/Uisx","</title>\n<meta name=referrer content=no-referrer>\n",$html);
echo $html;